package com.roger.query.service.impl;

import org.apache.lucene.index.Term;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.TermQuery;

import com.roger.query.service.QueryService;
import com.roger.vo.QueryParams;

/**
 * 简单查询
 * @author luoweiyi
 *
 */
public class SingleQueryServiceImpl implements QueryService<QueryParams>{

	@Override
	public Query getQuery(QueryParams params) {
		return new TermQuery(new Term(params.getField(),params.getSearch()));
	}

}
